import * as mongoose from 'mongoose';
import db from './../core/lib/db/mongodb';

let userSchema: mongoose.Schema = new mongoose.Schema(
    {
        corpId: String,
        messageId: String,
        userId: String,
        isRead: Boolean,
        isDing: Boolean,
        isDelete: Boolean
    }, { collection: 'user' });
export interface User extends mongoose.Document {
    corpId: string;
    messageId: number;
    userId: string;
    isRead: boolean;
    isDing: boolean;
    isDelete: boolean;
}
export let userModel = db.model<User>('user', userSchema);
